var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1e.offsetHeight+100?t.style.display="block":t.style.display="none":300 .menu-link, .ast-header-break-point ul.main-header-menu .ast-menu-toggle"):e[a].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var s=0;s{t+=e.clientHeight}),a=this.hash)&&(a=(a=document.querySelector(a))&&a.offsetTop-t)&&astraSmoothScroll(e,a)}}astra.is_scroll_to_top&&(n=document.querySelector("#page header"),o=document.getElementById("ast-scroll-top"),astScrollToTopHandler(n,o),window.addEventListener("scroll",function(){astScrollToTopHandler(n,o)}),o.onclick=function(e){astraSmoothScroll(e,0)})}();